package com.aliang.shopping.model.po;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 
 * @TableName goods
 */
@TableName(value ="goods")
@Data
public class Goods implements Serializable {
    /**
     * 数据ID
     */
    @TableId(value = "id")
    private Long id;

    /**
     * 商品名
     */
    @TableField(value = "goods_name")
    private String goodsName;

    /**
     * 商品分类ID
     */
    @TableField(value = "type_id")
    private String typeId;

    /**
     * 商品主图
     */
    @TableField(value = "main_images")
    private String mainImages;

    /**
     * 图文描述
     */
    @TableField(value = "image_desc")
    private String imageDesc;

    /**
     * 商品状态，默认为未上架0
     */
    @TableField(value = "status")
    private Integer status;

    /**
     * 创建时间
     */
    @TableField(value = "create_time",fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time",fill = FieldFill.UPDATE)
    private LocalDateTime updateTime;


    /**
     * 商家Id
     */
    @TableField(value = "business_id")
    private Long businessId;
    /**
     * 是否删除
     */
    @TableField(value = "is_delete")
    private Integer isDelete;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}